<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
    }
    /* padding */
    
    .box {
        width: 200px;
        height: 200px;
        padding-top: 100px;
        padding-left: 100px;
        background-color: rgb(108, 49, 247);
    }
    
    .box1 {
        width: 100px;
        height: 100px;
        background-color: rgb(255, 159, 80);
    }
    /* margin */
    
    .boxTwo {
        width: 300px;
        height: 300px;
        overflow: hidden;
        background-color: rgb(92, 228, 87);
    }
    
    .boxTwo1 {
        width: 100px;
        height: 100px;
        margin-top: 100px;
        margin-left: 100px;
        background-color: rgb(255, 0, 64);
    }
</style>

<body>
    <!-- 第一个盒子 -->
    <div class="box">
        <div class="box1">

        </div>
    </div>

    <!-- 第二个盒子 -->
    <div class="boxTwo">
        <div class="boxTwo1">

        </div>
    </div>
</body>

</html>